package com.icesnowsun.app.user.controller;

import com.icesnowsun.app.user.service.impl.UserServiceImpl;
import ncme.auto.framework.core.annotations.aspect.AutoEntityProcess;
import ncme.auto.framework.core.annotations.aspect.AutoNoEntitySingleProcess;
import ncme.auto.framework.core.annotations.handler.AutoRequestBody;
import com.icesnowsun.app.user.entity.User;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/user/user")
@CrossOrigin
public class UserController {

    @AutoEntityProcess(BUSINESS_ENTITY = User.class, LOG_MSG = "User", REQUEST_TYPE_CODE = "523")
    public Object main(@AutoRequestBody Map<String, Object> param) {
        return null;
    }

    @RequestMapping("/login")
    @AutoNoEntitySingleProcess(SERVICE_CLASS = UserServiceImpl.class, LOG_MSG = "登录", REQUEST_TYPE_CODE = "5")
    public Object login(@AutoRequestBody Map<String, Object> param) {
        return null;
    }

}
